package com.chen.springboot.exception;

import lombok.Getter;
//处理异常，提供错误的错误码，如404、500
@Getter
public class ServiceException extends RuntimeException {
    private final String code;

    public ServiceException(String code, String msg) {
        super(msg);
        this.code = code;
    }
}
